<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> 新闻发布</title>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<base href="<%=basePath%>" />
<style>
 body{
	padding: 0;
	margin:0;
	font-family: 'Ubuntu', sans-serif;
	font-family: Simsun;
 }
 div a.nav_link{
      float: left;
	  color: #fff;
	  font-size: 16px;
	  padding: 0 25px;
	  position: relative;
	  text-decoration: none;
	  line-height:40px;
	  border-left:1px solid #ddd;
 }
 div.item-title{
   background:#AAAAAA;
   height:30px;
   font-weight:bolder;
   width:96%;
   margin-left:2%;
   font-size:13px;
   margin-top:4px;
   margin-bottom:4px;
   line-height:30px;
 }
 div.item-content{
   min-height:250px;
   width:96%;
   margin-left:2%;
 }
  
a{
 text-decoration:none;
 color:#0066FF;
}

p{
  color:#525252;
  font-size:12px;
}

.skillbar {
	position:relative;
	display:block;
	margin-bottom:15px;
	width:80%;
	background:#eee;
	height:35px;
	border-radius:3px;
	-moz-border-radius:3px;
	-webkit-border-radius:3px;
	-webkit-transition:0.4s linear;
	-moz-transition:0.4s linear;
	-ms-transition:0.4s linear;
	-o-transition:0.4s linear;
	transition:0.4s linear;
	-webkit-transition-property:width, background-color;
	-moz-transition-property:width, background-color;
	-ms-transition-property:width, background-color;
	-o-transition-property:width, background-color;
	transition-property:width, background-color;
}

.skillbar-title {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	font-weight:bold;
	font-size:13px;
	color:#444444; 
	-webkit-border-top-left-radius:3px;
	-webkit-border-bottom-left-radius:4px;
	-moz-border-radius-topleft:3px;
	-moz-border-radius-bottomleft:3px;
	border-top-left-radius:3px;
	border-bottom-left-radius:3px;
}

.skillbar-title span {
	display:block;
	background:rgba(0, 0, 0, 0.1);
	padding:0 20px;
	height:35px;
	line-height:35px;
	-webkit-border-top-left-radius:3px;
	-webkit-border-bottom-left-radius:3px;
	-moz-border-radius-topleft:3px;
	-moz-border-radius-bottomleft:3px;
	border-top-left-radius:3px;
	border-bottom-left-radius:3px;
}

.skillbar-bar {
	height:35px;
	width:0px;
	background:#6adcfa;
	border-radius:3px;
	-moz-border-radius:3px;
	-webkit-border-radius:3px;
}

.skill-bar-percent {
	position:absolute;
	right:10px;
	top:0;
	font-size:11px; 
	margin-top:10px;
	line-height:12px;
	color:#ffffff; 
	background:#666666;
	border: #444444 1px solid ;
	padding:2px; 
}

.skill-vote-button {
	position:absolute;
	right: -50px;
	top:0;
	font-size:11px; 
	margin-top:7px;
	line-height:12px;
	color:#444444; 
	background:#99FF99;
	border: #66FF66 1px solid ;
	padding:4px; 
	cursor:pointer;
}

td.top{
    vertical-align: top;
}
.fontsm {
  font-family: Simsun;
}

.col1{
  width:25%;
  font-size:13px;
  text-align:center;
  display:inline-block;
}
.col2{
  width:25%;
  font-size:13px;
  text-align:center;
   display:inline-block;
}
.col3{
  width:25%;
  font-size:13px;
  text-align:center;
   display:inline-block;
}
.col4{
  width:10%;
  font-size:13px;
  text-align:center;
   display:inline-block;
}
dd.odd{
   margin-left: 0px;
}
dd.even{
   background:rgb(246,244,243);
   margin-left: 0px;
}
div.new_item{
display:inline-block;
font-family:'微软雅黑';

}

div.input_item{
 
  font-size:18px;
  font-family:'微软雅黑';
  text-align: left;
  margin-top: 20px;
  margin-left: 20px;
}
</style>
</head>


<body>
 	
 	<div style="width:1000px;margin:auto auto;background:#ddd;height:100px;background:url('resources/img/banner.jpg')">
	</div>
	<div style="width:100%;background:#444444;height:40px">
	   <div style="width:1000px;margin:auto auto;color:white">
		    <a href="index.html" class="nav_link"> 首页 </a> 
			<a href="news.html" class="nav_link">重要新闻</a> 
			<a href="kunming.html" class="nav_link">昆明前线</a>
			<a href="uncle.html" class="nav_link">上海叔叔</a>
			<a href="weiquan.html" class="nav_link">倡导维权</a>
			<a href="media.html" class="nav_link">媒体报道</a>
			<a href="office.html" class="nav_link">泛亚公告</a>
			<a href="lookback.html" class="nav_link" style="border-right:1px solid #ddd;">危机回顾</a>
	   </div>
	</div>
	
	<%
		java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("yyyy-MM-dd");
	
		java.util.Date currentTime = new java.util.Date();//得到当前系统时间 
		String dateString = formatter.format(currentTime); //将日期时间格式化  
	%>
	<div style="width:1000px;margin:auto auto;min-height:500px;">
		
		 <div style="width:99%;font-weight:bolder;margin-left:5px;margin-top:20px;border-bottom:1px solid #444444;padding-bottom:5px;color:#444444;">管理后台</div>
		 
		 <div style="width:99%;font-weight:bolder;margin-left:5px;margin-top:20px;">${message}</div>
		 <div style="overflow:hidden">
				
			  <form action="news/addnews" method="POST" enctype="multipart/form-data">
			  	
			  		<div class="input_item">
			  					
			  			<font style="line-height:22px;">标题</font><input id = "title" name="title" style="margin-left:20px;width:90%;height:30px;  font-size: 18px;" placeholder="请输入标题" />
			  					
			  		</div>
			  		<div class="input_item">
			  					
			  			<font style="line-height:22px;">日期</font>
			  			<input id = "issueDate" name="issueDate" style="margin-left:15px;width:150px;height:25px;  font-size: 18px;" placeholder="<%=dateString%>"  value="<%=dateString%>"/>
			  			<font style="line-height:22px;margin-left:10px;">利好</font>
			  			<select id="how" name ="how" style="margin-left:20px;width:150px;height:30px;  font-size: 18px;">
			  				<option value="利好">利好</option>
			  				<option value="利空">利空</option> 
			  				<option value="中性">中性</option> 
			  			</select>
			  			
			  			<font style="line-height:22px;margin-left:10px;">类型</font>
			  			 <select id="type" name ="type" style="margin-left:20px;width:150px;height:30px;  font-size: 18px;">
			  			    <option value="1">重要新闻</option>
			  				<option value="2">昆明前线</option>
			  				<option value="3">上海叔叔</option>
			  				<option value="4">倡导维权</option>
			  				<option value="5">媒体报道</option>
			  				<option value="6">泛亚公告</option>
			  				<option value="7">危机回顾</option>
			  			</select>
			  			<font style="line-height:22px;margin-left:10px;">置顶与否</font>
			  			 <select id="weight" name ="weight" style="margin-left:20px;width:150px;height:30px;  font-size: 18px;">
			  			    <option value="0">普通</option>
			  				<option value="1">置顶</option> 
			  			</select>
			  			   
			  		</div>
			  		<div class="input_item">
			  		    <font style="line-height:22px;">正文</font><br>
			  			<textarea id="content" name="content" style="margin-left:40px;width:95%;height:300px"> </textarea>  
			  		</div>
			  		
			  		<div class="input_item">
			  			<font style="line-height:22px;">评价</font><br>
			  			<textarea  id="comment" name="comment" style="margin-left:40px;width:95%;height:100px"></textarea> 
			  		</div>
			  		<div class="input_item"> 
			  			<font style="line-height:22px;margin-right:20px">资源文件</font> <input type="file" id="file" name="file" />
			  		</div>
			  		<div class="input_item">
			  			<input type="submit" style="float:right;margin-right:50px;width:200px;height:30px;cursor:pointer" value="提交">
			  		</div>
			  </form>
					
		 </div> 
		 <div style="height:100px">
	     </div>
		 
	</div>
	
	  <script src="resources/js/nicEdit-latest.js" type="text/javascript"></script>
	 <script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);</script> 
	 
	 
</body>
</html>